﻿using Ninject;
using Ninject.Modules;
using WebExam.BusinessServices.NinjectModules;

namespace WebExam.IOC
{
    public class ControllerDependencyInjection
    {
        private readonly IKernel _kernel;

        public ControllerDependencyInjection()
        {
            _kernel = new StandardKernel(
                new NinjectModule[]
                    {
                        new ServiceBindingModule(),
                        new RepositoryBindingModule()
                    });
        }

        public IKernel Kernel
        {
            get { return _kernel; }
        }
    }
}